﻿using System;
using System.Windows.Forms;
using Rem.Objects;
using Rem.Objects.Forms;

namespace Rem.Explorer
{
    class FormUtilities
    {
        public static Form OpenObjectForm(BaseObjectTypes baseType, object objectID, bool cloneObject)
        {
            Form form = FormHelper.OpenObjectForm(baseType,objectID,cloneObject);

            return form;
        }

        public static void NewObject(object sender, EventArgs e)
        {
            OpenObjectForm((sender as RemMenuItem).BaseType, -1, false);
        }

    }
}
